<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #app .title {
            margin-bottom: 10px;
        }

        .item {
            height: 50px;
            width: 100%;
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            font-size: 14px;
        }

        .item .left img {
            width: 40px;
            border-radius: 50%;
        }

        .item button {
            width: 55.99px;
            height: 22.4px;
        }
    </style>
</head>

<body>
    <div id="app">
        <div class="title">任务列表</div>
        <div class="list">
            <div class="item" v-for="(item,index) in tasklist" v-bind:key="index">
                <div class="left">
                    <img v-bind:src="item.pic" alt="">
                </div>
                <div class="middle">
                    <div class="name">{{item.name}}</div>
                    <div class="desc">{{item.desc}}</div>
                </div>
                <div class="right">
                    <button>{{item.status == 1?'去完成':(item.status == 2?'领取':'已领取')}}</button>
                </div>
            </div>
        </div>
    </div>
    <script src="./vue-2.5.21.js"></script>
    <script>
        var v = new Vue({
            el: '#app',
            data: {
                tasklist: [
                    { id: 1, pic: 'https://img2.woyaogexing.com/2022/11/27/21ee839cc34c432bf15ced4dba22a036.jpg', name: '咪咕视频送流量', desc: '每月领500MB流量', status: 1 },
                    { id: 2, pic: 'https://img2.woyaogexing.com/2022/11/27/843cdddd1294cf3e4287f139c1fe676c.jpg', name: '咪咕视频送流量', desc: '每月领1500MB流量', status: 2 },
                    { id: 3, pic: 'https://img2.woyaogexing.com/2022/11/27/ea2df01625a79d001636838cd34079b3.jpg', name: '咪咕视频送流量', desc: '每月领2500MB流量', status: 3 },
                    { id: 4, pic: 'https://img2.woyaogexing.com/2022/11/27/cdcb6f60ca0bfb5671347e0150be9935.jpg', name: '咪咕视频送流量', desc: '每月领3500MB流量', status: 4 },
                    { id: 5, pic: 'https://img2.woyaogexing.com/2022/11/27/63c7bb8886fc92030e79d30397790fa8.jpg', name: '咪咕视频送流量', desc: '每月领4500MB流量', status: 5 }
                ]
            }
        })
    </script>
</body>

</html>